package com.jotta.client.file;

import android.content.Context;

import com.jotta.client.data.FileInfo;

public class FileManipulationFactory {

    public static FileManipulation getFileManipulation(Context context, FileManipulationType type, FileInfo fileInfo, String localFilePath) {

        if (type == FileManipulationType.EMAIL) {
            return new EmailFile(context, fileInfo, localFilePath);

        } else if (type == FileManipulationType.OPEN_WITH_APPS) {
            return new OpenFileWithApps(context, fileInfo, localFilePath);

        } else if (type == FileManipulationType.BROWSE_PICTURES) {
            return new BrowsePictureFolder(context, fileInfo, localFilePath);

        } else {
            return null;
        }
    }

}
